package mx.itesm.timeburrito;

import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;

public class Acelerometro implements SensorEventListener {
	
	private static float xAcel;

	public static float valorAcelerometroX(){
		return xAcel;
	}

	public void onSensorChanged(SensorEvent event) {
		switch (event.sensor.getType()){
		case Sensor.TYPE_ACCELEROMETER:
			xAcel=(event.values[0]);
		}
	}

	public void onAccuracyChanged(Sensor arg0, int arg1) {	
	}
}
